import json

class R():
    # 请求状态
    status = 200
    # 返回数据
    date = ""
    # 错误信息
    errorMsg = ""

    def ok(self,data):
        return json.loads('{"status":200,"data":"%s","errorMsg":""}'% data)

    def error(self):
        return json.loads('{"status":512,"data":"登录失败","errorMsg":""}')
